<%@page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<jsp:useBean id="user" class="model.User" scope="session"></jsp:useBean>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Air Transport - Add New City</title>
</head>
<body>

<c:if test="${not user.accessed}">
<c:redirect url="index.html"></c:redirect>
</c:if>

<c:if test="${not user.loggedIn}">
<c:redirect url="index.html"></c:redirect>
</c:if>

<h2><u>Air Transport Service - Add New City</u></h2>

<jsp:include page="header.jsp"></jsp:include>


<form name="forma" method="post" action="newcity.html">

<table BORDER="2" cellspacing="2">

<tr>
<td style="BACKGROUND-COLOR: #a8da8f;">City ID:</td>
<td align="center">
<input id="cityID" name="cityID" size="20"  TYPE="TEXT" style="float:left"></td>
</tr>
<tr>
<td style="BACKGROUND-COLOR: #a8da8f;">City Name:</td>
<td align="center">
<input id="cityName" name="cityName" size="20"  TYPE="TEXT" style="float:left"></td>
</tr>

<tr align="center">
<td bgcolor="#CCCCCC">&nbsp;</td>
<td bgcolor="#CCCC99">
  <INPUT TYPE="submit" NAME="submit" VALUE="Add"></td>
</tr>
</table>

</form>

<hr width="30%" align="left">
<c:if test="${not empty cityname}">
	<c:choose>
		<c:when test="${flag}">
			The city <font color="red"><i><b>${cityname}</b></i></font> is added.
		</c:when>
		<c:otherwise>
			The city <font color="red"><i><b>${cityname}</b></i></font> is not added.
		</c:otherwise>
	</c:choose>
	<hr width="30%" align="left">
</c:if>

	


<a href="main.html">Main Page - Flight List</a>


<jsp:include page="footer.jsp"></jsp:include>
		
</body></html>